﻿using System;
using System.Linq;

namespace JustNotJewelryMain
{   
    public class FallingBlock : MovableObject
    {   
        public FallingBlock(Coordinates topLeft, Coordinates speed, char[,] body)
            : base(topLeft, speed, body)
        {
            
        }

        //default constructor
        

        public void MoveLeft()
        {
            this.TopLeft = new Coordinates(this.TopLeft.Row, this.TopLeft.Col - 1);
            //this.TopLeft.Col--;
        }

        public void MoveRight()
        {
            this.TopLeft = new Coordinates(this.TopLeft.Row, this.TopLeft.Col + 1);
        }

        public void ChangeColor(ConsoleColor randomColor)
        {
            this.ObjectColor = randomColor;
        }

        public void SpeedUp()
        {
            this.TopLeft = new Coordinates(this.TopLeft.Row + 1, this.TopLeft.Col);
        }
    }
}
